package com.visitor.registration.mapper;

import com.visitor.registration.entity.City;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CityMapper {
    
    /**
     * 根据省份ID查询城市列表
     */
    List<City> selectByProvinceId(@Param("provinceId") Integer provinceId);
    
    /**
     * 根据ID查询城市
     */
    City selectById(Integer id);
} 